<?php
/* @var $this PageController */
/* @var $model Page */

?>
<div class="row">
	<div class="span12">
		<div style="padding: 10px;">
			<ul class="nav nav-tabs">
			    <li class="active"><a href="#about" data-toggle="tab">About CABS</a></li>
			    <li><a href="#history" data-toggle="tab">CABS History</a></li>
			    <li><a href="#policy" data-toggle="tab">CABS Policies</a></li>
			</ul>
			<div class="tab-content">
			    <div class="tab-pane active" id="about">
			    	<?php foreach ($model->contents as $content) { ?>
			    		<?php if($content->tabOrder == 1) { ?>
							<h3><?php echo $content->name; ?></h3>
							<?php echo $content->content; ?>
						<?php } ?>
					<?php } ?>
			    </div>
			    <div class="tab-pane" id="history">
			    	<?php foreach ($model->contents as $content) { ?>
			    		<?php if($content->tabOrder == 2) { ?>
							<h3><?php echo $content->name; ?></h3>
							<?php echo $content->content; ?>
						<?php } ?>
					<?php } ?>
			    </div>
			    <div class="tab-pane" id="policy">
			    	<p>The Columbus Area Boardgaming Society is registered in the state of Ohio as a 501(c)7 organization, dedicated to promoting board gaming as a hobby in the Columbus, Ohio, Greater Metropolitan Area.  The following documents and policies are presented for public viewing.</p>
			    	<p><a href="/images/CABS_Charter_2013.pdf">CABS Charter (PDF)</a></p>
					<p><a href="/images/CABS_ByLaws_2013.pdf">CABS By-Laws (PDF)</a></p>
			    	<?php foreach ($model->contents as $content) { ?>
			    		<?php if($content->tabOrder == 3) { ?>
							<h3><?php echo $content->name; ?></h3>
							<?php echo $content->content; ?>
						<?php } ?>
					<?php } ?>
			    </div>
			</div>
		</div>
	</div>
</div>